package org.auf.to;

public class Question {
	private String id;
	private String question;
	private String answer[]= new String[4];;
	private int correct;
	
	public String getQuestion() {
		return question;
	}
	public void setQuestion(String question) {
		this.question = question;
	}
	public String getAnswer(int i) {
		return (i>0 && i<5)? answer[i-1]: null;
	}
	public boolean setAnswer(int i, String answer) {
		if(i>0 && i<5)this.answer[i-1] = answer;
		return (i>0 && i<5); 
	}
	public int getCorrect() {
		return correct;
	}
	public void setCorrect(int correct) {
		this.correct = correct;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
}
